<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?>
<?php include template("content","head","sysx_m"); ?>
<div class="bg pad15">
    <div class="nytitle">
        <a href="/">首页</a>
        <?php echo catpos($catid,$s='>');?>
    </div>
	<!-- <?php echo $CATEGORYS[$catid]['parentid'];?> <?php echo $catid;?> -->
    <div class="nytitle" style="background: none;color:#fff;height: auto;margin-left:auto;padding: 0 2% 1% 2%">
        <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=ee63793efab3471e23ae02533de555ba&action=category&catid=3&order=listorder+asc\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'category')) {$data = $content_tag->category(array('catid'=>'3','order'=>'listorder asc','limit'=>'20',));}?>
        <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
        <a  href="<?php echo $r['url'];?>" class="layui-btn layui-btn-mini" style="display:inline-block;width:24%;color:#fff;background:#ccc;margin-top: 5px;margin-left:0 !important;<?php if($catid==$r[catid]) { ?>background-color:#000 ;color:#fff<?php } ?>"><?php echo $r['catname'];?></a>
        <?php $n++;}unset($n); ?>
        <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
    </div>

    <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=1a5f17032f099297278b45a99d2c6718&action=lists&catid=%24catid&num=7&page=%24_GET%5Bpage%5D&moreinfo=1&order=updatetime+DESC\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$pagesize = 7;$page = intval($_GET[page]) ? intval($_GET[page]) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>$catid,'moreinfo'=>'1','order'=>'updatetime DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));if(ceil($content_total/$pagesize) < $page){ob_end_clean();header("HTTP/1.1 404 Not Found");header("Status: 404 Not Found");include template("content", "404");ob_end_flush();exit;}$pages = pages($content_total, $page, $pagesize, $urlrule);$data = $content_tag->lists(array('catid'=>$catid,'moreinfo'=>'1','order'=>'updatetime DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));}?>
    <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
    <div class="zj1" ><span><img src="<?php if($r[thumb]) { ?><?php echo $r['thumb'];?><?php } else { ?><?php echo IMG_PATH;?>wutu.jpg<?php } ?>" width="120" height="100" /></span>
        <h3 style="height: 40px;overflow:hidden"><?php echo $r['title'];?></h3>
        <p>
            <?php echo str_cut(strip_tags($r[content]),120);?>
            <a href="<?php echo $r['url'];?>">【详情】</a></p>
        <div style="clear:both;"></div>
    </div>
    <?php $n++;}unset($n); ?>
    <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
</div>
<div style="width: 80%;margin:10px auto"><?php echo $pages;?></div>
<?php include template("content","tj_pro","sysx_m"); ?>
<?php include template("content","foot","sysx_m"); ?>
